bug in clearing color buffer
A message that is not in the archive (sent off-list or not yet received): [email protected]/
https://bugs.freedesktop.org/show_bug.cgi?id=75061
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|[email protected]. |[email protected] |org |.org Component|Other |Drivers/Gallium/r600
--- Comment #11 from Michel Dänzer <[email protected]> --- AFAICT the problem is that both threads access the same struct r600_resource concurrently. It might be relatively easy to avoid the crashes by updating the buf member atomically in r600_init_resource() instead of setting it to NULL first in r600_invalidate_buffer(), but I suspect there could be more subtle issues with other members, in particular valid_buffer_range.
Marek, any thoughts on how to solve this?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
--- Comment #12 from Marek Olšák <[email protected]> ---
All writes to valid_buffer_range are protected by a mutex. Only the reads are not.
I've got no idea what to do with invalidate_buffer. If we added mutexes everywhere, it would slow down the driver.
I think that calling BufferData in one thread and using the buffer for rendering in some other thread is a race condition in the application and should be fixed in the app.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
--- Comment #13 from Marek Olšák <[email protected]> ---
If the program called MapBufferRange(MAP_INVALIDATE_BUFFER_BIT) instead of BufferData, I think it would be okay to crash:
Quoted 1 line
From GL 4.4 spec:
"MAP_INVALIDATE_BUFFER_BIT indicates that the previous contents of the entire buffer may be discarded. Data within the entire buffer are undefined with the exception of subsequently written data. No GL error is generated if subsequent GL operations access unwritten data, but the result is undefined and system errors (possibly including program termination) may occur."
In other words, no context should access the buffer until UnmapBuffer() is complete, because there may be unwritten data.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #94321|0 |1
is obsolete| |
--- Comment #14 from Marek Olšák <[email protected]> --- Created attachment 95375
--> https://bugs.freedesktop.org/attachment.cgi?id=95375&action=edit
possible fix
Could you please try this patch?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #95375|0 |1
is obsolete| |
--- Comment #15 from Marek Olšák <[email protected]> --- Created attachment 95378
--> https://bugs.freedesktop.org/attachment.cgi?id=95378&action=edit
possible fix 2
Please test this one. The previous patch wasn't correct.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
--- Comment #16 from Maxim <[email protected]> ---
I'm sorry that I leave this bug. Just read comment 13 and realized that it was my fault. Do I need to test this patch?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
--- Comment #17 from Vedran Miletić <[email protected]> --- Was this fixed?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=75061
GitLab Migration User <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|NEW |RESOLVED--- Comment #18 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/495.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel